package com.wy.service.wy;

import com.wy.bean.HouseBean;
import com.wy.model.sys.Houses;

import java.util.List;
import java.util.Map;

public interface HouseService {


	/**
	 * 获取住户列表
	 * @return
	 */
	List<HouseBean> houseList(Integer pageSize, Integer start, Integer buildingId, String houseCode,List<String> rids,Integer residenceId);

	/**
	 * 获取住户列表的总量
	 *
	 * @return
	 */
	Integer houseSize(Integer pageSize, Integer start,Integer buildingId,String houseCode,List<String> rids,Integer residenceId);

	/**
	 * 根据楼栋id获取房屋ID
	 * @param buildingID
	 * @return
	 */
	public List<Houses> getHousesByBuildingId(Integer buildingID);

	/**
	 * 新建住户信息
	 * 
	 * @param houses
	 */
	void insertHouse(HouseBean houses);

	/**
	 * 修改住户信息
	 * 
	 * @param houses
	 */
	void updateHouse(HouseBean houses);

	/**
	 * 删除住户信息
	 * 
	 * @param hid
	 */
	void deleteHouses(Integer hid);

	/**
	 * 删除住户信息
	 *
	 * @param hid
	 */
	void deleteHouses(List<String> hid);

	/**
	 * 获取所有房屋信息
	 * @return
	 */
	List<Houses> getHouseList();


	List<HouseBean> getHouseListImport(List<HouseBean> list);

  void insertBatch(List<HouseBean> list);

	/**
	 * 根据楼栋id获取单元信息
	 * @param buildingId
	 * @return
	 */
  List<String> getUnitByBuildingId(Integer buildingId);

	/**
	 * 根据楼栋id单元号，获取房屋信息
	 * @param buildingId
	 * @param unitName
	 * @return
	 */
	List<Houses> getHousesByBidUnit(Integer buildingId,String unitName);

}
